home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / randgr.zip / RANDGRID.FRM (.txt) < prev    next >
Visual Basic Form  |  1991-08-04  |  11KB  |  188 lines

  1. Form1
  2. Form1
  3. Form1*
  4. B_Sort
  5. &Sort
  6. B_Find
  7. &Find
  8. B_Insert
  9. &Insert
  10. B_Del
  11. &Delete
  12. Picture1
  13. B_Quit
  14. &Quit
  15. T_Input
  16. 4321.99
  17. Label1
  18. 4Enter a number to search column 1 for or to insert. 
  19. Grid1
  20. VScroll1
  21. Command2_Click
  22. Form_Click
  23. Grid1
  24. Colwidthb
  25. @    Form_Load
  26. Command3_Click
  27. Entry
  28. Element
  29.     HugeRedim
  30. hArray
  31. HugeDim
  32.     HugeErase
  33.     SetHugeEl
  34. FillGrid
  35. StartPt
  36. StopPt$
  37. Pointers
  38. Pointer5
  39.     GetHugeEl
  40. Text)
  41. Vscroll1_ChangeE
  42. Vscroll1
  43. ValueB
  44.     GridStart:
  45. Grid2
  46. LastElement
  47. StartRowL
  48.     BlankGrid
  49. StopRow
  50. Blank
  51. Start*
  52. StartColf
  53. StopCol
  54. Vscrolln
  55. LargeChange
  56. SmallChange
  57. ElesIf
  58. ArraySorted
  59. B_Find_ClickU
  60. SortedArray
  61. B_Insert_Click
  62. B_PgDn_Click
  63. PgAmt=
  64. Vscroll1_Click
  65. B_PgUp_ClickE
  66. B_Quit_Click
  67. MousePointer
  68. Form1%
  69. text1
  70. T_Input
  71. Rowsw
  72. B_Sort_Click
  73. Bottom2
  74.     LastArray
  75. array
  76. ElementStr8
  77. GetEl
  78. L_SortStart9
  79. L_SortStop
  80. captionJ
  81. L_SortStop_Click^
  82. CurElement
  83. CurEl^
  84. T_Input1
  85. NewElm
  86. Grid3
  87. T_Input_Change
  88. T_Input_GotFocus
  89. SelStart
  90.     SelLength
  91.     ArraySize
  92. Picture1_Click$
  93. ScrollUp]
  94. ScrollDown
  95.     LastValue
  96. B_Del_Click
  97. ColSelected
  98. DelRow
  99. CellSelected
  100. Deleted
  101. NumDeleted
  102. DecrLastEl
  103. IgnoreChangeQ
  104. SelStartRow
  105.     SelEndRowu
  106. SelStartCol
  107.     SelEndCol
  108. Gird1
  109. IncrEl
  110. IncrLastEl
  111. MatchPt
  112. MatchPoint
  113. MatchRow
  114. last/
  115. Record
  116. FileSorted|
  117. LastRecord
  118. IncrLastRec
  119. CurRec
  120. GetRec
  121. RecFmt
  122. FileSize
  123. SortedFile
  124. Grid1_Click
  125. Label1_Click
  126. MakeSampleFile
  127. Rather than move Records around in a file, we use pointers to the records
  128. instead.
  129. Again, rather than move data around when when a record is deleted,
  130. we keep track of deleted records and reuse them when adding new records.
  131. pointer number of the first Record on the grid
  132. pointer number of the last Record found on a searche
  133. number of Records in the File: 5000, in this example
  134. flag to show if the File Pointers are sorted.i
  135. number of lines to page up and down by
  136. variables used in the sort routine.m
  137. last value selected on scroll barr
  138. flag to allow changing Vscroll1.value without executingt
  139. Vscroll1.Change 
  140. Grid row number where matching item is after a Finda
  141. Copyright 1991 Nelson Ford, Public (software) Library, 713-524-63944    
  142. Form_Load
  143. maximum number of records allowedc
  144. number of records in the test file
  145. c:\vb\test
  146. Set width of each grid column:
  147. Set up Scroll bar values:9
  148. display last 10 entries in the Grid:
  149. FillGrid
  150. Vscroll1_Change
  151. See "Change Property" in the VB Manual. 
  152. up arrow clicked: scroll down
  153. down arrow clicked: scroll up
  154. clicked above handle: page down 
  155. clicked below handle: page upc
  156. moved handle
  157. B_Find_Click
  158. Nothing entered.
  159. B_Insert_Click
  160. Out of room.
  161. Enter something in the Text Box.
  162. If a match was not found, the contents of Grid.Row=MatchRow, .Col=0o
  163.   will be the closest match value.
  164. Test to see if the new value is < or => the contents of that cell:
  165. B_Quit_Click
  166. B_Sort_Click
  167. T_Input_GotFocus
  168. Picture1_Click
  169. Public (software) Library is the most extensive collection of pd/shareware available. 
  170. We have a large collection of routines for all languages, including VB. 
  171. For a catalog, call 800-242-4PsL or write PsL, P.O.Box 35705, Houston, TX 77235-5705."
  172. ScrollUp
  173. ScrollDown
  174. B_Del_Click
  175. Cell not selected.
  176. file Record number
  177. Delete entire row?
  178. just delete cell, not the entire entry
  179. Copyright 1991 Nelson Ford, Public (software) Libraryy
  180. DecrLastEl
  181. takes care of all the ramifications of decreasing LastRecord
  182. IncrLastRec
  183. takes care of all the ramifications of increasing LastRecord
  184. GetRec
  185. MakeSampleFile
  186. Creating file: C:\VB\TEST"
  187. c:\vb\test
  188.